const noticeList = {
  data: [{
    createTime: '2020-03-20 05:30:27',
    id: '1',
    title: '维护通知',
    type: '1',
    content: '"DimpleBlog Vue前后端分离版本已经发布,后台地址: <a href="http://admin.bianxiaofeng.com" target="_blank">http://admin.bianxiaofeng.com</a>. 测试账号：test/123456↵↵**另外,禁止以任何方式售卖源码!开源不易,且用且珍惜!谨防上当受骗!**↵↵"',
    status: '1',
    createBy: '张三'
  }, {
    createTime: '2020-03-20 05:30:27',
    id: '2',
    title: '消息通知',
    type: '2',
    content: '这是一条测试的通知消息！',
    status: '1',
    createBy: '张三2'
  }]
}

module.exports = [
  // notice查询所有
  {
    url: '/system/notice/list',
    type: 'get',
    response: config => {
      return {
        code: 200,
        message: '操作成功',
        total: 2,
        data: noticeList.data
      }
    }
  },
  // 修改notice
  {
    url: '/system/notice',
    type: 'put',
    response: _ => {
      return {
        code: 200,
        message: '操作成功'
      }
    }
  },
  // 新增notice
  {
    url: '/system/notice',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: '操作成功'
      }
    }
  },
  // 删除notice
  {
    url: '/system/notice',
    type: 'delete',
    response: _ => {
      return {
        code: 200,
        message: '操作成功'
      }
    }
  }
]
